import { createApp } from 'vue'
import App from './App.vue'

//清除浏览器默认样式
import '@/style/reset.scss'

//全局组件的注册
import HospitalTop from '@/components/hospital_top/index.vue'
import HospitalBottom from '@/components/hospital_bottom/index.vue'
//element 国际化
// @ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import ElementPlus from "element-plus";
//加载路由
import router from '@/router/index'
//引入pinia
import store from '@/store/index'

const app = createApp(App);

app.component('HospitalTop',HospitalTop)
app.component('HospitalBottom',HospitalBottom)

app.use(ElementPlus, {
    locale: zhCn,
})
app.use(router)
app.use(store)
//挂载
app.mount('#app')
